module("WFS testing");

test('does createProtocol() return same predetermined protocol', function() {
    var wfs_protocol = new OpenLayers.Protocol.WFS({
        version: "1.1.0",
        url: "wfs_url",
        featurePrefix: "",
        featureType: "feature_type",
        srsName: "EPSG:3067",
        filter: new OpenLayers.Filter.Comparison({
            type: OpenLayers.Filter.Comparison.LIKE,
            property: 'pnr:kuntaKoodi',
            value: '564',
            wildCard: '*',
            matchCase: false
        })
    });

    var filter = new OpenLayers.Filter.Comparison({
        type: OpenLayers.Filter.Comparison.LIKE,
        property: 'pnr:kuntaKoodi',
        value: '564',
        wildCard: '*',
        matchCase: false
    });

    var wfs_protocol2 = new WFS().createProtocol('wfs_url', filter, 'feature_type');
    assert.deepEqual(wfs_protocol, wfs_protocol2, 'createProtocol() returns predetermined protocol');
});

